home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 2 / MacMania 2.toast / Demo's / Tools&Utilities / Programming / Editor 2.0 / Info < prev   
Encoding:
Text File  |  1994-06-07  |  3.4 KB  |  91 lines  |  [TEXT/DEDL]

  1. INFO ABOUT "EDIT"
  2. -----------------
  3.  
  4. "Edit" is a small but useful little Ascii-text editor. You
  5. can use it for programming or whatever you like. Because it
  6. uses the Text manager, it can only handle text up to 32 kbyte.
  7. This program works under system 6.xx and also under system 7.xx.
  8.  
  9. But it has some other nice features, you may want to use or
  10. incorporate into your own programming projects. Here is a short
  11. list of them:
  12.  
  13. • Online help (sorry, until now only in german)
  14. • Preview for printing
  15. • Transfer to other programs (only under finder)
  16. • macro editor for short amount of text
  17. • fast find & replace
  18. • add or cut CR
  19. • word wrapping
  20. • editing in insert mode or override mode
  21. • simple ruler for screen and printing
  22. • printing with or without title and page#
  23. • For BASIC programmers there is a whole program shell
  24. • popup menus for fast macro pasting
  25. • simple document and memory stats
  26.  
  27. This is a programming project for self study. I want to give you
  28. this editor code so you can perhaps learn and adopt some things
  29. that might be useful for your own programs. If you have any
  30. suggestions or critics about this program please contact me, I
  31. always will be glad to get some response from you.
  32.  
  33.  
  34.  
  35. COMPILING THE PROGRAM
  36. ---------------------
  37.  
  38. To compile this program correctly, you first have to copy the
  39. toolbox function "FN Munger" into ZBasic with the ZMover. This
  40. function is not included in ZBasic and does most of the work
  41. for searching and replacing text.
  42.  
  43. Then load Edit.BAS into ZBasic and choose the configuration
  44. menu. Here you have to change the following parameters:
  45.  
  46. Default Variable Type:      Integer
  47. Convert to Upper Case:      Yes
  48. Space Req.After Key Words:  Yes
  49. Array Base 1:               No
  50. Type:                       APPL
  51. Creator:                    DEDL
  52.  
  53. Then you can compile the program. After this you have to load
  54. the resource file "Edit.Res" into ResEdit. Also load the new
  55. program "Edit". Clear the following resources from "Edit":
  56. "DITL" and "DLOG", you don't need them any more.
  57.  
  58. At least copy all the resources from "Edit.Res" into "Edit"
  59. and save the changes.
  60.  
  61. Now everything should work fine.
  62.  
  63. SOME TIPS
  64. ---------
  65. When you load "Edit.Res" into ResEdit you'll find two resource
  66. templates, "FORM" and "DEDL". The first resource is created when
  67. you save a document with "Edit". look at its definition. Perhaps
  68. you want to change it or add your own things (like word wrap...).
  69. "DEDL" is simple the owner resource. Please don't change it.
  70. Most textual items are in special resource files, so you can
  71. localize this program very easily. If you want to add your own
  72. help items or translate the given ones into english (I hope thats
  73. no great problem) you simply can edit the corresponding "TEXT"
  74. resource. If you look at the "STR#" string resources you'll find
  75. some containig numbers. If you want to use inches in the ruler
  76. you should change he number 28 to 72. If you want to change the
  77. default program font, simply change Monaco into something you like
  78. and the number 9 into another character size. Numbers 12 and 600
  79. are for the left and right ruler setting when the program starts up.
  80. It's up to you to change also this one.
  81.  
  82. ENDNOTE
  83. -------
  84. This program code is my own copyright, but you can freely use it.
  85. If you give this code away there is only on thing, you should 
  86. remember: Please keep all these files together.
  87.  
  88. Thanks for your interest. I hope that you will enjoy this neat
  89. little program.
  90.  
  91. Detlef Reimers